package com.supermarket.service;

import java.util.List;

import com.supermarket.DAO.DepartmentDAO;
import com.supermarket.DAO.DepartmentDAOImpl;
import com.supermarket.ORM.Department;

public class DepartmentServiceImpl implements DepartmentService {

	private DepartmentDAO dao = new DepartmentDAOImpl();
	
	@Override
	public void addDepartment(Department department) {
		
		dao.addDepartment(department);

	}

	@Override
	public List<Department> allDepartment() {
		
		return dao.allDepartment();
	}

	@Override
	public void delDepartment(String department_identifier) {
		dao.delDepartment(department_identifier);

	}

	@Override
	public Department loadDepartment(String department_identifier) {
		
		return dao.loadDepartment(department_identifier);
	}

	@Override
	public void modiDepartment(Department department) {
		dao.modiDepartment(department);

	}

}
